import { createAPI } from '@/utils/request'
export const directoryslist = params => createAPI('/directorys', 'get', params)
export const lenlist = params => createAPI('/subjects', 'get', params)
export const editfn = data => createAPI(`/directorys/${data.id}`, 'put', data)
export const deleteTag = data => createAPI(`/directorys/${data.id}`, 'DELETE', data)
export const start = data => createAPI(`/directorys/${data.id}/${data.state}`, 'POST', data)
export const addfnfn = data => createAPI('/directorys', 'POST', data)

// 标签
export const lablelist = params => createAPI('/tags', 'get', params)

export const lablefn = data => createAPI(`/directorys/${data.id}`, 'put', data)
export const lableedit = data => createAPI(`/tags/${data.id}`, 'put', data)
export const deletelable = data => createAPI(`/tags/${data.id}`, 'DELETE', data)
export const lableaddfnfn = data => createAPI('/tags', 'POST', data)
